/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: dell
 * Date: 2023-11-24
 * Time: 13:27
 */
class X{
    Y y=new Y();//1
    public X(){//2
        System.out.print("X");
    }
}
class Y{
    int a=1;
    public Y(){//3
        System.out.print("Y");
    }
}
class Z extends X{
    Y y=new Y();//4
    public Z(){//5
        System.out.print("Z");
    }

}
public class test2 {
    public static void main(String[] args) {
        Z z=new Z();
    }
}